/** 根据路由ads.txt不同的域名返回不同的ads.txt内容 */
export default defineEventHandler((event) => {
  const host = getHeader(event, "host") || "";
  setHeader(event, "Content-Type", "text/plain");
  switch (host) {
    case "kopah5.com": {
      return "google.com, pub-8469846532048167, DIRECT, f08c47fec0942fa0";
    }
    case "ggbondh5.com": {
      return "google.com, pub-8469846532048167, DIRECT, f08c47fec0942fa0";
    }
    case "h5boardpro.com": {
      return "google.com, pub-8469846532048167, DIRECT, f08c47fec0942fa0";
    }
    case "mogoh5.com": {
      return "google.com, pub-8469846532048167, DIRECT, f08c47fec0942fa0";
    }
    case "acth5games.com": {
      return "google.com, pub-8469846532048167, DIRECT, f08c47fec0942fa0";
    }
    default: {
      return "google.com, test";
    }
  }
});
